import request from '@/utils/request'

// 查询餐馆订单列表
export function listResorder(query) {
  return request({
    url: '/system/resorder/list',
    method: 'get',
    params: query
  })
}

// 查询餐馆订单详细
export function getResorder(orderId) {
  return request({
    url: '/system/resorder/' + orderId,
    method: 'get'
  })
}

// 新增餐馆订单
export function addResorder(data) {
  return request({
    url: '/system/resorder',
    method: 'post',
    data: data
  })
}

// 修改餐馆订单
export function updateResorder(data) {
  return request({
    url: '/system/resorder',
    method: 'put',
    data: data
  })
}

// 删除餐馆订单
export function delResorder(orderId) {
  return request({
    url: '/system/resorder/' + orderId,
    method: 'delete'
  })
}
